package com.weng.coder.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.weng.coder.entity.Project;
import com.weng.coder.entity.ProjectUser;

import java.util.List;


/**
 * 项目用户 业务实现接口
 *
 * @author wengzhonghui
 * @创建时间 2018-07-17 17:22:12
 *
 */
public interface ProjectUserService extends IService<ProjectUser> {

	int deleteByProjectId(String projectId);
	
	List<ProjectUser> findByProjectIdAndUserId(String projectId,String userId);
	
	int countByProjectIdAndUserIdAndIsOwner(String projectId,String userId,Integer isOwner);

	List<ProjectUser> findByIds(List<String> ids);

	void delete(String id);

	void delete(ProjectUser t);

	ProjectUser getOne(String id);

	void deleteByIds(String[] ids);
}
